<template>
	<div class="numjumb_box">
		<countTo ref="numJumbRef" :startVal='start' :endVal='end' :duration='duration' autoplay></countTo>
	</div>
</template>
<script>
  import countTo from 'vue-count-to';
  export default {
    components: { countTo },
	props:{
		start: {
		  type: Number,
		  default: 0
		},
		end: {
		  type: Number,
		  default: 0
		},
		duration: {
		  type: Number,
		  default: 2000
		}
	},
    data () {
      return {
      }
    },
	methods:{
		starts(){
			this.$refs.numJumbRef.start
		}
	},
	mounted() {
		// console.log(countTo);
	}
  }
</script>

<style scoped>
	.numjumb_box{
		font-size: 60px;
	}
</style>